package com.gitee.feizns.explore.data_structure.graph.utils;

/**
 * @author feizns
 * @since 2020/4/30
 */
public class StrUtils {

    public static final String replace(String str) {
        return str.replace("[", "{").replace("]", "}");
    }

    //5
    //[[0,1],[1,2],[2,3],[3,4]]
    //[[1,2],[2,3],[3,1]]
    public static void main(String[] args) {
        System.out.println(replace("[[2,4,10],[5,2,38],[3,4,33],[4,2,76],[3,2,64],[1,5,54],[1,4,98],[2,3,61],[2,1,0],[3,5,77],[5,1,34],[3,1,79],[5,3,2],[1,2,59],[4,3,46],[5,4,44],[2,5,89],[4,5,21],[1,3,86],[4,1,95]]"));
    }

}
